<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/admin../lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="/admin../css/public.css" media="all">
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">

        <fieldset class="table-search-fieldset">
            <legend>搜索信息</legend>
            <div style="margin: 10px 10px 10px 10px">
{{--                搜索租房--}}
                <form class="layui-form layui-form-pane" action="/admin/rent" method="get" value="{{$key}}">
                    @csrf
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">用户姓名</label>
                            <div class="layui-input-inline">
                                <input type="text" name="key" autocomplete="off" class="layui-input" >
                            </div>
                        </div>
                        <div class="layui-inline">
                            <button type="submit" class="layui-btn layui-btn-primary"  lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
                        </div>
                    </div>
                </form>
{{--                //添加租房--}}
                <form action="/admin/add_rentclass" method="post">
                    <input type="submit" value="添加租房" class="layui-btn layui-btn-danger">
                </form>
            </div>
        </fieldset>
{{--        //工作人员列表--}}
        <table class="layui-table" style="text-align: center;padding-top:100px;">
            <colgroup>
                <col width="150">
                <col width="200">
                <col>
            </colgroup>
            <thead>
            <tr>
                <th style="text-align: center">id</th>
                <th style="text-align: center">图片</th>
                <th style="text-align: center">商圈名</th>
                <th style="text-align: center">户型</th>
                <th style="text-align: center">地区</th>
                <th style="text-align: center">房子户型</th>

                <th style="text-align: center">房价</th>
                
                <th style="text-align: center">面积</th>
                <th style="text-align: center">每平方单价</th>
                <th style="text-align: center">首付</th>
                <th style="text-align: center">月供</th>
                <th style="text-align: center">楼层</th>
                <th style="text-align: center">装修</th>
                <th style="text-align: center">经纪人房评</th>
                <th style="text-align: center">操作</th>
            </tr>
            </thead>
            <tbody>
                <?php foreach($row as $v){?>
                
                    @csrf
                <tr>
                    <td>{{$v -> id}}</td>
                    <td><img src="{{$v -> zh_picture}}"/></td>
                    <td>{{$v -> zh_name}}</td>
                    <td>{{$v -> zh_square}}</td>
                    <td>{{$v -> zh_place}}</td>
                    <td>{{$v -> house_type}}</td>  
                    <td>{{$v -> zh_price}}</td>

                    <td>{{$v -> acreage}}</td>
                    <td>{{$v -> anym}}</td>
                    <td>{{$v -> down_payment}}</td>
                    <td>{{$v -> installment}}</td>
                    <td>{{$v -> floor}}</td>
                    <td>{{$v -> fitment_finish}}</td>
                    <td>{{$v -> Room_evaluation}}</td>
                    <td>
                    <form method="post" action="/admin/add_house_rent/id/{{$v -> id}}">
                       <input type="submit" value="修改" class="layui-btn layui-btn-warm"> 
                    </form>
                    <form method="post" action="/admin/rent_deler/id/{{$v -> id}}">
                       <input type="submit" value="删除" class="layui-btn layui-btn-danger shanchu" id="{{$v -> id}}">
                    </form></td>
                </tr>
           <?php }?>
            </tbody>
            </tbody>
        </table>
        <div align="center">
            <buttom >顶页</buttom>
            <buttom>上一页</buttom>
            <buttom>下一页</buttom>
            <buttom>最后一页</buttom>
            <buttom>总页数</buttom>
        </div>
    </div>
</div>
<script src="/admin../lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script>

</script>

</body>
</html>
